package cn.springcloudandalibaba.service.impl;

import cn.springcloudandalibaba.dao.MallOrder;
import cn.springcloudandalibaba.mapper.OrderMapper;
import cn.springcloudandalibaba.service.OrderService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

@Service
public class OrderServiceImpl implements OrderService {

    @Resource
     private  OrderMapper orderMapper;


    public int InsertOrder(MallOrder mallOrder) {
        return  orderMapper.insert(mallOrder);
    }

    public void UpdateOrder(MallOrder mallOrder) {

    }

    public MallOrder SelectOrder(int orderId) {
      return   orderMapper.selectById(orderId);
    }
}
